//
// Created by linxi on 2021/1/22.
//

#include "wifi.h"

// ESP8266连接wifi
void connectWifi(){

    WiFi.begin(ssid, password);

    //等待WiFi连接,成功连接后输出成功信息
    while (WiFi.status() != WL_CONNECTED) {
        delay(1000);
        Serial.print(".");
    }
    Serial.println("");
    Serial.println("WiFi Connected!");
    Serial.println("");
}